#include <iostream>
#include <unistd.h>

int main() 
{
    int pipefd[2];
    int n = pipe(pipefd);

    if (n == -1) 
    {
        std::cerr << "Pipe failed" << std::endl;
        return -1;
    }
    
    std::cout << pipefd[0] << " " << pipefd[1] << std::endl;
    
    return  0;
}